package com.zhentao.es.controller;

import com.zhentao.es.mapper.ApArticleMapper;
import com.zhentao.es.service.ApArticleService;
import com.zhentao.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @Date 2024/3/9 9:39
 * @Author xdm
 **/
@RestController
public class EsInitController {
    @Autowired
    private ApArticleService articleService;

    @RequestMapping("/es/init")
    private ResponseResult init() throws IOException {
        return  articleService.esInit();
    }
}
